package com.vochupin.bt;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class BtActivity extends Activity {
	private static final String TAG = BtActivity.class.getSimpleName();

    private Button btnBluetooth;
    
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        btnBluetooth = (Button) findViewById(R.id.btnBluetooth);
        btnBluetooth.setOnClickListener(btnListener);
    }
    
    private OnClickListener btnListener = new OnClickListener(){
		public void onClick(View v) {
			Log.e(TAG, v.toString());
			Intent intent = new Intent();
			intent.setClass(BtActivity.this, BluetoothActivity.class);
			startActivity(intent);
		}
    };
}